--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit fec2f22680bf30070ae0922fb7dae0f949c5e399
Parents : f09da90
Author : Sudo-Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-01-01T18:03:53-06:00
fix(meshchat): specify exception types in command parsing to improve error handling
Changes
Diff
diff --git a/meshchatx/meshchat.py b/meshchatx/meshchat.py
index 504c8f09..23d9f8b4 100644
--- a/meshchatx/meshchat.py
+++ b/meshchatx/meshchat.py
@@ -4029,7 +4029,7 @@ class ReticulumMeshChat:
new_cmd[int(k, 16)] = v
else:
new_cmd[int(k)] = v
- except:
+ except (ValueError, TypeError):
new_cmd[k] = v
commands.append(new_cmd)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────